package List_;

import java.util.Arrays;

public class ListTest7 {
    public static void main(String[] args) {
        double d[]={1,2,4,5};
        double[] d2 = Arrays.copyOf(d, 2);
        System.out.println(Arrays.toString(d2));
    }
}
